package com.example.whm.model;

import java.io.Serializable;
import java.util.Date;

public class Box implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	Entity entity;
	String collname;
	
	int  price;
	int num;
	
	String createtime=new Date().toLocaleString();
	
	
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public Entity getEntity() {
		return entity;
	}
	public void setEntity(Entity entity) {
		this.entity = entity;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	
	public String getCollname() {
		return collname;
	}
	public void setCollname(String collname) {
		this.collname = collname;
	}


	
	public Box(Entity entity, String collname, int price, int num) {
		super();
		this.entity = entity;
		this.collname = collname;
		this.price = price;
		this.num = num;
	}
	public Box() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
